Skip to content

fix: workspace home model count submenus showing for every model on open#569

Merged
Dimillian merged 2 commits intoDimillian:mainfrom
johnny4dev:fix/worktree-model-menu-submenu-layout
Mar 21, 2026
Merged

fix: workspace home model count submenus showing for every model on open#569
Dimillian merged 2 commits intoDimillian:mainfrom
johnny4dev:fix/worktree-model-menu-submenu-layout

Conversation

@johnny4dev
Copy link
Contributor

@johnny4dev johnny4dev commented Mar 19, 2026

Summary

Fix workspace home model count submenus showing for every model on open.

While fixing that, this also cleans up the worktree model menu layout so long model names remain readable and no longer collide with the instance count affordance on the right.

Details

In worktree mode, each model row has a nested submenu for selecting the number of runs. The submenu should stay hidden until the user hovers or focuses the corresponding model row.

This change updates the menu styling so:

  • nested count submenus stay hidden by default
  • the submenu appears only for the active hovered/focused row
  • the dropdown can expand to fit full model names
  • the right-side 1x and chevron keep dedicated spacing without overlapping labels

Screenshots

Before:
CleanShot 2026-03-19 at 13 32 11@2x

After:
CleanShot 2026-03-19 at 13 31 24@2x

Scope

  • CSS-only change
  • limited to src/styles/workspace-home.css

Validation

  • npm run typecheck
  • npm run test

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9615e72e74

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@johnny4dev johnny4dev force-pushed the fix/worktree-model-menu-submenu-layout branch from 9615e72 to ad13659 Compare March 19, 2026 17:30
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad136592a6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@johnny4dev johnny4dev force-pushed the fix/worktree-model-menu-submenu-layout branch from ad13659 to 20873a8 Compare March 19, 2026 17:39
@johnny4dev johnny4dev force-pushed the fix/worktree-model-menu-submenu-layout branch from 20873a8 to e9519a9 Compare March 19, 2026 17:43
@Dimillian Dimillian changed the title Fix workspace home model count submenus showing for every model on open fix: workspace home model count submenus showing for every model on open Mar 21, 2026
@Dimillian Dimillian merged commit 45bf116 into Dimillian:main Mar 21, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bcd6a455d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 242 to +246
.workspace-home-model-option .workspace-home-model-toggle {
width: 175px;
flex: 1;
justify-content: space-between;
min-width: 175px;
width: 100%;
flex: 1 1 auto;
padding-right: 48px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid reserving worktree count space in local model rows

WorkspaceHomeRunControls.tsx:203-227 only renders the 1x/submenu affordance when runMode === "worktree", but this new padding-right: 48px applies to every .workspace-home-model-toggle. In local mode that leaves an empty gutter on each row and, because the popover now sizes to max-content, makes long model names clip or overflow about 48px sooner even though there is no count control to make room for. This is a visible regression for local-only workspaces with longer provider/model labels.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants